<?php

namespace app\index\validate;

use think\Validate;

class BidTaskGeneral extends Validate
{

    protected $rule = [
        'id' => 'require|number',
        'list' => 'require|array'
    ];

    protected $message = [
        'id' => '网络错误',
        'list' => '请填写任务信息'
    ];

    protected $scene = [
        'add' => ['list'],
        'edit' => ['id']
    ];

}
